package com.example.demo.aop.asp;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ClazzAspect {

	@Before("execution(* com.example.demo.aop.asp.Method.*(..))")
	public void before() {
		System.out.println("this is before...");
	}
	@After("execution(* com.example.demo.aop.asp.Method.*(..))")
	public void after() {
		System.out.println("this is after....");
	}
	@AfterReturning("execution(* com.example.demo.aop.asp.Method.*(..))")
	public void afterReturning() {
		System.out.println("this is afterReturning....");
	}
}
